package command;

/**
 * @ClassName CommandPatternDemo
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/7/20 16:46
 * @Version 1.0
 */
public class CommandPatternDemo {
	public static void main(String[] args) {
		final BillC billC = new BillC();
		final Invoker invoker = new Invoker();
		final MatchCommand matchCommand = new MatchCommand(billC);
		final ReceiptCommand receiptCommand = new ReceiptCommand(billC);
		invoker.addCommand(matchCommand);
		invoker.addCommand(receiptCommand);
		invoker.execute();
	}
}
